package com.simga.library.widget;

import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;

import com.simga.library.R;


public class DialogLoading extends Dialog{


    private Context mContext;
    public DialogLoading(Context context) {
        super(context, R.style.Dialog);
        mContext = context;
        View view = LayoutInflater.from(context).inflate(R.layout.dialog_loading_layout, null);
        setContentView(view);
        setCanceledOnTouchOutside(false);
    }

    @Override
    public void show() {
        super.show();
    }

    public void show(boolean isCancelable) {
        setCancelable(isCancelable);
        show();
    }

    @Override
    public void dismiss() {
        super.dismiss();

    }
}
